<?php
if (isset($_POST['createAccount'])) {
    $AccName = $_POST['accName'];
    $AccPass = $_POST['password'];
    putAccount($AccName, $AccPass, $_SESSION['userName'], $_SESSION['userPassHash'], null);
}
?>
<form action="" method="Post" class="">
  <div class="control-group">
    <label class="control-label" for="accName">Account Name:</label>
    <div class="controls">
      <input type="text" id="accName" placeholder="sDoza" required="required">
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="password">Password:</label>
    <div class="controls">
      <input type="password" id="password" placeholder="Password" required="required">
    </div>
  </div>
  <div class="control-group">
    <div class="controls">
      <button type="submit" class="btn btn-primary" name="createAccount">Submit</button>
      <button type="submit" class="btn">Reset</button>
    </div>
  </div>
</form>